Skip to main content

shortFilePath

Type​

function

Summary​

Returns the 8.3-format equivalent of a Windows long file path.

Syntax​

the shortFilePath of <filePath>
shortFilePath(<filePath>)

Description​

Use the shortFilePath function to obtain the equivalent of a file path in short format for use in situations that require it.

The shortFilePath function transforms the filePath without looking for the file, so it returns a value even if the filePath does not exist.

On Mac OS, OS X, or Unix systems, the shortFilePath simply returns the filePath without changing it.

Parameters​

NameTypeDescription

filePath

The location and name of the file or folder whose short equivalent you want. If you specify a name but not a location, LiveCode assumes the file or folder is in the defaultFolder.

Examples​

the shortFilePath of myPath
if it is the shortFilePath of it then put it into myFilePath

Value​

NameTypeDescription

return

The shortFilePath function returns a file path.

function: longFilePath

glossary: Windows, file path, return

keyword: file

property: filename

control structure: function

Compatibility and Support​

Introduced

LiveCode 1.1

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?